.SUFFIXES: .c .o

COMPILE = $(CC) -O3 -Wall -D_FILE_OFFSET_BITS=64 -DOS_LINUX
INC_PATH = -I/usr/local/include
LIB_PATH = -L/usr/local/lib -lfdfsclient  -lpthread
TARGET_PATH = /usr/local/bin

ALL_OBJS = 

ALL_PRGS = fdfs_monitor fdfs_test fdfs_test1

all: $(ALL_OBJS) $(ALL_PRGS)
.o:
	$(COMPILE) -o $@ $<  $(SHARED_OBJS) $(LIB_PATH) $(INC_PATH)
.c:
	$(COMPILE) -o $@ $<  $(ALL_OBJS) $(LIB_PATH) $(INC_PATH)
.c.o:
	$(COMPILE) -c -o $@ $<  $(INC_PATH)
install:
	cp -f $(ALL_PRGS) /usr/local/bin
clean:
	rm -f $(ALL_OBJS) $(ALL_PRGS)

